package pattern.proxy;

public class Test01 {
    public static void main(String[] args) {
//        IEat monitor = new StudyMember(new Monitor());
//        monitor.eatHuoGuo();
//        monitor.drinkCoffee();

        DynamicStudyMember dynamic = new DynamicStudyMember(new Monitor());
        IEat monitor = (IEat) dynamic.getProxy();
        monitor.eatHuoGuo();
        monitor.drinkCoffee();
        monitor.sing();
        monitor.washFoot();
    }
}
